import ZHCN from "./lang/zh-CN.json"
import EN from "./lang/en.json"
import {I18N} from "../../../../tools/i18n"

//


const i18n = new I18N();
i18n.addDict({"zh-CN":ZHCN,"en":EN})
// i18n.setDefault('zh-CN')
i18n.setLocal('zh-CN')
//
export const t  = (s:any,o?:any) => i18n.ts('pack-nifi')(s,o);
export const ts  = (path:string) => i18n.ts('pack-nifi.' + path);
export const tp  = (s:any,o?:any) => i18n.ts('pack-nifi.node-property')(s,o);